lcPaint_DrawCPrompt Home

Draws a box with a text, by default GUI font, as shown on the picture near cursor:

 BOOL lcPaint_DrawCPrompt (
   HANDLE hLcWnd,
   int X,
   int Y,
   int Align,
   LPCWSTR szText
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
X Y
  Text box position on a window (window coordinate space, pixels).
Align
  Text box alignment to X,Y position: 0-left bottom, 1-left top
szText
  Text string.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  Text box colors are defined by the following properties:

Property Type Access Meaning
LC_PROP_WND_COLORINFBG int RW Background color
LC_PROP_WND_COLORINFBORD int RW Border color
LC_PROP_WND_COLORINFTEXT int RW Text color